package proxySourceColonSeparated

import (
	"bufio"
	"github.com/imroc/req/v3"
	"net/url"
	"time"
)

type Option func(*colonSeparated)

func WithHTTPClient(c *req.Client) Option {
	return func(g *colonSeparated) {
		g.httpClient = c
	}
}

func WithSplitFunc(f bufio.SplitFunc) Option {
	return func(g *colonSeparated) {
		g.defaultSplitFunc = f
	}
}

func WithScheme(s string) Option {
	return func(g *colonSeparated) {
		g.defaultScheme = s
	}
}

func WithAuth(auth *url.Userinfo) Option {
	return func(g *colonSeparated) {
		g.defaultAuth = auth
	}
}

func WithExpire(e time.Duration) Option {
	return func(g *colonSeparated) {
		g.defaultExpire = e
	}
}

var _, _, _, _, _ = WithHTTPClient, WithSplitFunc, WithScheme, WithAuth, WithExpire
